package com.bnq.logc.tmp

import com.bnq.logc.data.FileInfoBean
import com.bnq.logc.data.UploadResult
import com.bnq.logc.upload.UploadFileManager
import java.io.File

class TmpUploadFileImpl : TmpUploadFile {
    override fun queryAllFileInfo(): List<FileInfoBean> {
        return UploadFileManager.queryTmpAllFileInfo()
    }

    override fun querySingleFileInfo(path: String): FileInfoBean? {
        return UploadFileManager.queryTmpSingleFileInfo(path)
    }

    override fun uploadFile(
        files: List<File>,
        cloudPathNames: List<String>,
        callback: ((List<UploadResult>) -> Unit)?
    ) {
        UploadFileManager.uploadTmpFiles(files,cloudPathNames,callback)
    }
}